<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title>标签管理</title>
		<link rel="stylesheet" href="css/reset.css" />
        <link rel="stylesheet" href="css/platform.css" />
        <link rel="stylesheet" href="css/table.css" />
		<link rel="stylesheet" href="css/tag-grade.css" />
	</head>

	<body>
		<div class="header">
            <div class="u-title">标签管理</div>
        </div>
        <!-- 页面内容展示区域 -->
        <div class="container" ms-controller="mainController">
            <button class="u-btn small" ms-class="dis:(adding||tagList.length==20)" ms-click="addTag">新增</button>
            <div class="tableWrapper">
                <table class="table">
                    <thead>
                        <tr>
                            <th class="order-num">序号</th>
                            <th>标签</th>
                            <th class="operate">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ms-repeat-tag="tagList">
                            <td class="order-num">{{$index+1}}</td>
                            <td>
                                <div class="tag-edit">
                                    <span ms-if="tag.name != ' '">{{tag.name}}</span>
                                    <input ms-if="tag.name == ' '" class="u-ipt" maxlength="10"/>    
                                </div>
                            </td>
                            <td class="operate">
                                <span ms-if="tag.name != ' '" class="del" ms-click="deltagpop(tag)"></span>
                                <a ms-if="tag.name == ' '" href="javascript:;" ms-click="saveTag()">保存</a>
                                <a ms-if="tag.name == ' '" href="javascript:;" ms-click="noSave()">取消</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!--弹框区域-->
        <div ms-controller="popController">
            <div class="u-popup" id="popup_confirm">
                <div class="bg"></div>
                <div class="asTable">
                    <div class="asTableCell">
                        <div class="asCell alert">
                            <a href="javascript:;" class="close btn-close">×</a>
                            <p class="title">提示</p>
                            <div class="container">
                                <div class="warning"></div>
                                <p ms-if="confirmType=='del'">确定要删除该标签吗？</p>
                            </div>
                            <div class="btn-box">
                                <button ms-if="confirmType=='del'" class="u-btn" ms-click="delTag()">确定</button>
                                <button class="u-btn gray btn-close">取消</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="u-popup" id="popup_tips">
                <div class="bg"></div>
                <div class="asTable">
                    <div class="asTableCell">
                        <div class="asCell alert">
                            <a href="javascript:;" class="close btn-close">×</a>
                            <p class="title">提示</p>
                            <div class="container">
                                <div class="error"></div>
                                <p></p>
                            </div>
                            <div class="btn-box">
                                <button class="u-btn btn-close">确定</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="js/jquery.min.js"></script>
        <script src="js/avalon.shim.sn.js"></script>
        <script src="js/platform.js"></script>
        <script src="js/DataInterface/DataInterface.js"></script>
        <script src="js/tagmanage.js?v=20160721"></script>
	</body>

</html>
